from ronglian_sms_sdk import SmsSDK
import json
accId = '2c94811c936de29c019370523f18002a'
accToken = '4ff916171a604b82a17db5e411a2bed5'
appId = '2c94811c936de29c019370573bbc0066'
# 验证码注册
def send_message(soujihao,data):
    sdk = SmsSDK(accId, accToken, appId)
    tid = '1'
    mobile = soujihao
    datas = (data,)
    resp = json.loads(sdk.sendMessage(tid, mobile, datas))
    if resp['statusCode']=='000000':
            return  True
    else:
        return False

